package com.ruicar.afs.cloud.channel.mange.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.channel.mange.entity.ChannelAppertainRegion;
import com.ruicar.afs.cloud.channel.mange.entity.ChannelUser;
import com.ruicar.afs.cloud.channel.mange.mapper.ChannelUserMapper;
import com.ruicar.afs.cloud.channel.mange.service.ChannelUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xudongdong
 * @date 2020-06-03
 */
@Service
public class ChannelUserServiceImpl extends ServiceImpl<ChannelUserMapper, ChannelUser> implements ChannelUserService {

    @Override
    public List<ChannelAppertainRegion> findAppertainByUserId(Long id) {
        return baseMapper.findAppertainByUserId(id);
    }

    @Override
    public List<ChannelAppertainRegion> findAuthorizeByUserId(Long id) {
        return baseMapper.findAuthorizeByUserId(id);
    }
}
